#include<stdio.h>
#include<assert.h>

char* my_strcat(char* des, const char* src, int num)
{
	assert(des && src);
	char* ret = des;

	while (*des != '\0')
	{
		des++;
	}

	while (*src!='\0' && num--)
	{
		*des++ = *src++;
	}

	return ret;
}
int main()
{
	char arr[40] = "abcdefg";
	char arr1[40] = "hijklmn";

	printf("%s",my_strcat(arr, arr1, 2));
	return 0;
}